﻿// Copyright (c) 2025 .NET Foundation and Contributors. All rights reserved.
// Licensed to the .NET Foundation under one or more agreements.
// The .NET Foundation licenses this file to you under the MIT license.
// See the LICENSE file in the project root for full license information.

namespace ReactiveUI;

/// <summary>
/// Gives the ability to get the output.
/// </summary>
/// <typeparam name="TInput">The input.</typeparam>
/// <typeparam name="TOutput">The output.</typeparam>
public interface IOutputContext<out TInput, TOutput> : IInteractionContext<TInput, TOutput>
{
    /// <summary>
    /// Gets the output of the interaction.
    /// </summary>
    /// <returns>
    /// The output.
    /// </returns>
    /// <exception cref="InvalidOperationException">
    /// If the output has not been set.
    /// </exception>
    TOutput GetOutput();
}
